﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Collections.ObjectModel;
using System.ServiceModel.Activation;

namespace BusinessApplication.Web.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class WCFMapService : IWCFMapService
    {
        #region IMapService Member

        public ObservableCollection<LocationData> LocationDataList()
        {

            var locationList = new ObservableCollection<LocationData>();

            locationList.Add(new LocationData
            {
                CustomerId = 10003,
                CustomerName = "Jack",
                Lat = 40.941352,
                Lng = -73.871310
            });

            locationList.Add(new LocationData
            {
                CustomerId = 10001,
                CustomerName = "Aaron",
                Lat = 43.778926,
                Lng = -73.958068
            });

            locationList.Add(new LocationData
            {
                CustomerId = 10002,
                CustomerName = "Gabriel",
                Lat = 41.003764,
                Lng = -75.494192
            });

            return locationList;
        }

        #endregion
    }
}
